<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <meta name="description" content="">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
    <link rel="stylesheet" href="https://gw.alipayobjects.com/as/g/antui/antui/10.1.10/dpl/antui.css"/>
    <link rel="stylesheet" href="https://gw.alipayobjects.com/as/g/antui/antui/10.1.10/dpl/icon/page-result-busy.css">
</head>
<body>
<div class="am-page-result">
    <div class="am-page-result-wrap">
        <div class="am-page-result-pic am-icon page-error"></div>
        <div class="am-page-result-title">系统出错，正在排查</div>
        <div class="am-page-result-brief" id="msg"></div>
    </div>
    <div class="am-page-result-button">
        <a class="am-page-result-button" onclick="window.location.reload()">刷新</a>
        <a class="am-page-result-button" onclick="backView()">返回</a>
    </div>
</div>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script>
    $(document).ready(function () {
        var msg = getUrlParam("msg");
        console.log(msg);
        if (msg !== null)
            document.getElementById("msg").innerText = decodeURI(msg);
    });

    function backView() {
        if (window.webkit !== undefined && window.webkit !== null) {
            window.webkit.messageHandlers.backView.postMessage("backView");
        } else {
            android.finishActivity();
        }
    }

    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg);  //匹配目标参数
        if (r != null) return decodeURI((r[2]));
        return null; //返回参数值
    }
</script>
</body>
</html>